package Libs.Utils.Strings
{
	public const PadRight:Function = function( source:String, amount:uint, char:String = " " ):String
    {
        if( char == null )
        {
            char = " " ;
        }
        else if( char.length > 1 )
        {
            char = char.charAt( 0 );
        }
        while( source.length != amount )
        {
            source += char;
        }
        return source ;
    };
}